package MapDemo;

import java.util.Scanner;

/*	1.键盘录入一个字符串
	2.用StringBuiler将字符串反转*/
public class Fanzhuan {
    public static void main(String[] args) {
        //键盘录入一个字符串
        System.out.println("请输入一个字符串");
        Scanner sc = new Scanner(System.in);
        String d = sc.nextLine();
        //将StringBuilder字符反转
        //将录入的d转化为StringBuilder类
        StringBuilder sv = new StringBuilder();
        sv.append(d);
        //反转sv
        sv.reverse();
        //将反转后的StringBuiler转化为String
        String s1 = sv.toString();
        System.out.println(s1);


    }
}
